<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:78:"/www/wwwroot/km/HM-faka-master/public/../application/admin/view/buy/index.html";i:1666941281;s:73:"/www/wwwroot/km/HM-faka-master/application/admin/view/layout/default.html";i:1666941281;s:70:"/www/wwwroot/km/HM-faka-master/application/admin/view/common/meta.html";i:1666941281;s:72:"/www/wwwroot/km/HM-faka-master/application/admin/view/common/script.html";i:1666941281;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<meta name="referrer" content="never">
<meta name="robots" content="noindex, nofollow">

<link rel="shortcut icon" href="<?php echo $site['ico']; ?>" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<?php if(\think\Config::get('fastadmin.adminskin')): ?>
<link href="/assets/css/skins/<?php echo \think\Config::get('fastadmin.adminskin'); ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
<?php endif; ?>

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>

    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav') && \think\Config::get('fastadmin.breadcrumb')): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <?php if($auth->check('dashboard')): ?>
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                    <?php endif; ?>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <style type="text/css">
    @media (max-width: 375px) {


        .edit-form tr th:first-child, .edit-form tr td:first-child {
            width: 20%;
        }

        .edit-form tr th:nth-last-of-type(-n+2), .edit-form tr td:nth-last-of-type(-n+2) {
            display: none;
        }
    }

    .edit-form table > tbody > tr td a.btn-delcfg {
        visibility: hidden;
    }

    .edit-form table > tbody > tr:hover td a.btn-delcfg {
        visibility: visible;
    }

    @media (max-width: 767px) {
        .edit-form table tr th:nth-last-child(-n + 2), .edit-form table tr td:nth-last-child(-n + 2) {
            display: none;
        }
        .edit-form table tr td .msg-box {
            display: none;
        }
    }
</style>

<div class="panel panel-default panel-intro">
<!--    <div class="panel-heading">-->
<!--    </div>-->

    <div class="panel-body">
        <div class="panel-body">

            <form id="update-form" role="form" data-toggle="validator" method="POST" action="">
                <?php echo token(); ?>
                <div class="box-body box-profile">


                    <div class="form-group">
                        <label for="email" class="control-label">自定义支付接口商品支付名称</label>
                        <input type="text" class="form-control" id="email" name="row[buy_name]" value="<?php echo htmlentities($options['buy_name']); ?>" />
                    </div>

                    <div class="form-group">
                        <label class="control-label">下单默认输入数据</label>
                        <div class="alert alert-success-light" style="margin-bottom: 0; padding: 5px 10px;">
                            此处配置一般用于查单验证，如需用户填写更多下单信息，请在商品信息中选择附加选项<br>
                            勾选邮箱类型后，则会往该参数内发送订单信息邮件，前提您要正确设置通知配置。
                        </div>
                        <table class="table table-responsive fieldlist" data-name="row[buy_data]" data-template="testtpl" data-tag="tr">
                            <tr>
                                <td>名称</td>
                                <td>下单提示</td>
                                <td>查单提示</td>
                                <td>下单必填</td>
                                <td>下单使用</td>
                                <td>查单使用</td>
                                <td>邮箱类型</td>
                            </tr>
                            <textarea name="row[buy_data]" class="form-control hide"><?php echo $options['buy_data']; ?></textarea>
                        </table>
                        <!--定义模板，模板语法使用Art-Template模板语法-->
                        <script type="text/html" id="testtpl">
                            <tr class="form-inline">
                                <td><input type="text" name="row[<%=name%>][<%=index%>][name]" class="form-control" value="<%=row['name']%>" size="12"></td>
                                <td><input type="text" name="row[<%=name%>][<%=index%>][placeholder]" class="form-control" value="<%=row['placeholder']%>" size="30"></td>
                                <td><input type="text" name="row[<%=name%>][<%=index%>][search_placeholder]" class="form-control" value="<%=row['search_placeholder']%>" size="30"></td>
                                <td><input type="checkbox" name="row[<%=name%>][<%=index%>][required]" <%=row['required']%> class="" value="checked"></td>
                                <td><input type="checkbox"  name="row[<%=name%>][<%=index%>][buy]" <%=row['buy']%> class="" value="checked"></td>
                                <td><input type="checkbox"  name="row[<%=name%>][<%=index%>][search]" <%=row['search']%> class="" value="checked"></td>
                                <td><input type="checkbox"  name="row[<%=name%>][<%=index%>][email]" <%=row['email']%> class="" value="checked"></td>
                            </tr>
                        </script>
                    </div>
                    <div class="form-group">
                        <label for="c-cdk_order" class="control-label">卡密发货顺序</label>
                        <select id="c-cdk_order" data-rule="required" class="form-control selectpicker" name="row[cdk_order]">
                            <option value="asc" <?php if($options['cdk_order'] == 'asc'): ?>selected<?php endif; ?>>优先发旧添加的库存</option>
                            <option value="desc" <?php if($options['cdk_order'] == 'desc'): ?>selected<?php endif; ?>>优先发新添加的库存</option>
                            <option value="random" <?php if($options['cdk_order'] == 'random'): ?>selected<?php endif; ?>>随机</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <button type="submit" class="btn btn-success"><?php echo __('Submit'); ?></button>
                        <button type="reset" class="btn btn-default"><?php echo __('Reset'); ?></button>
                    </div>

                </div>
            </form>
        </div>
    </div>
</div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version']); ?>"></script>
    </body>
</html>
